home *** CD-ROM | disk | FTP | other *** search
Winamp Compiled Maki Script | 2003-11-16 | 8.3 KB | 289 lines |
- /* Note: a decompiler is no invitation to steal code.
- Please respect the the copyright */
-
- #include "std.mi"
- Global ConfigAttribute ConfigAttribute3;
- Global ConfigAttribute ConfigAttribute4;
- Global ConfigAttribute ConfigAttribute5;
- Global ConfigAttribute ConfigAttribute6;
- Global ConfigAttribute ConfigAttribute7;
- Global ConfigAttribute ConfigAttribute8;
- Global ConfigAttribute ConfigAttribute9;
- Global ConfigAttribute ConfigAttribute10;
- Global ConfigAttribute ConfigAttribute11;
- Global ConfigAttribute ConfigAttribute12;
- Global ConfigAttribute ConfigAttribute13;
- Global ConfigAttribute ConfigAttribute14;
- Global ConfigAttribute ConfigAttribute15;
- Global ConfigAttribute ConfigAttribute16;
- Global ConfigAttribute ConfigAttribute17;
- Global ConfigAttribute ConfigAttribute18;
- Global ConfigAttribute ConfigAttribute19;
- Global ConfigAttribute ConfigAttribute20;
- Global ConfigAttribute ConfigAttribute21;
- Global ConfigAttribute ConfigAttribute22;
- Global ConfigAttribute ConfigAttribute23;
- Global ConfigAttribute ConfigAttribute24;
- Global ConfigAttribute ConfigAttribute25;
- Global ConfigAttribute ConfigAttribute26;
- Global ConfigAttribute ConfigAttribute27;
- Global ConfigAttribute ConfigAttribute28;
- Global ConfigAttribute ConfigAttribute29;
- Global Group Group103;
- Global Group Group104;
- Global Layer Layer105;
- Global Layer Layer106;
- Global Layer Layer107;
- Global Layer Layer108;
- Global Layer Layer109;
- Global Timer Timer110;
- Global AnimatedLayer AnimatedLayer111;
- Global AnimatedLayer AnimatedLayer112;
- Global Int Int113;
- Global Int Int114;
- Global Button Button115;
- Global Button Button116;
- Global Int Int117;
-
- Function func0();
- Function func1830();
-
- func0()
- {
- ConfigAttribute ConfigAttribute71;
- ConfigAttribute ConfigAttribute66;
- ConfigAttribute ConfigAttribute61;
- ConfigAttribute ConfigAttribute64;
- ConfigItem ConfigItem32;
- ConfigItem ConfigItem50;
- ConfigAttribute ConfigAttribute62;
- ConfigItem ConfigItem55;
- ConfigItem ConfigItem47;
- ConfigItem ConfigItem38;
- ConfigItem ConfigItem35;
- ConfigItem ConfigItem41;
- ConfigAttribute ConfigAttribute59;
- ConfigAttribute ConfigAttribute65;
- ConfigItem ConfigItem44;
- ConfigAttribute ConfigAttribute60;
- ConfigItem ConfigItem57;
- ConfigItem ConfigItem53;
- ConfigItem32 = Config.newItem(( "Winamp\ Modern"), ( "\{26E26319\-AECA\-4433\-B8F1\-F4A5BF2A9ED5\}"));
- ConfigItem35 = Config.newItem(( "Drawers"), ( "\{C338B30F\-2A04\-4b10\-871F\-4E9D52D62806\}"));
- ConfigItem38 = Config.newItem(( "Menus"), ( "\{12ED320E\-6813\-45ac\-9F8E\-78EE5B2B5F6D\}"));
- ConfigItem41 = Config.newItem(( "Main\ Windowshade\ Mode"), ( "\{58F07E21\-AE96\-4899\-B7BC\-3640B40029FB\}"));
- ConfigItem44 = Config.newItem(( "Vis\ Buttons"), ( "\{D70E3ABF\-D2FF\-4b82\-9A70\-4B5DF1A5D942\}"));
- ConfigItem47 = Config.newItem(( "Notifications"), ( "\{1AB968B3\-8687\-4a35\-BA70\-FCF6D92FB57F\}"));
- ConfigItem50 = Config.newItem(( "Songticker"), ( "\{7061FDE0\-0E12\-11D8\-BB41\-0050DA442EF3\}"));
- ConfigItem53 = Config.newItem(( "Hidden"), ( "\{E9C2D926\-53CA\-400f\-9A4D\-85E31755A4CF\}"));
- ConfigItem55 = Config.getItem(( "\{1828D28F\-78DD\-4647\-8532\-EBA504B8FC04\}"));
- ConfigItem57 = Config.getItem(( "\{6559CA61\-7EB2\-4415\-A8A9\-A2AEEF762B7F\}"));
- ConfigAttribute59 = ConfigItem55.newAttribute(( "Winamp\ Modern"), ( ""));
- ConfigAttribute59.setData(( "\{26E26319\-AECA\-4433\-B8F1\-F4A5BF2A9ED5\}"));
- ConfigAttribute60 = ConfigItem32.newAttribute(( "Drawers"), ( ""));
- ConfigAttribute60.setData(( "\{C338B30F\-2A04\-4b10\-871F\-4E9D52D62806\}"));
- ConfigAttribute61 = ConfigItem32.newAttribute(( "Menus"), ( ""));
- ConfigAttribute61.setData(( "\{12ED320E\-6813\-45ac\-9F8E\-78EE5B2B5F6D\}"));
- ConfigAttribute62 = ConfigItem32.newAttribute(( "Main\ Windowshade\ Mode"), ( ""));
- ConfigAttribute62.setData(( "\{58F07E21\-AE96\-4899\-B7BC\-3640B40029FB\}"));
- ConfigAttribute64 = ConfigItem32.newAttribute(( "Vis\ Shortcut\ Button"), ( ""));
- ConfigAttribute64.setData(( "\{D70E3ABF\-D2FF\-4b82\-9A70\-4B5DF1A5D942\}"));
- ConfigAttribute65 = ConfigItem32.newAttribute(( "Notifications"), ( ""));
- ConfigAttribute65.setData(( "\{1AB968B3\-8687\-4a35\-BA70\-FCF6D92FB57F\}"));
- ConfigAttribute66 = ConfigItem32.newAttribute(( "Songticker"), ( ""));
- ConfigAttribute66.setData(( "\{7061FDE0\-0E12\-11D8\-BB41\-0050DA442EF3\}"));
- ConfigAttribute3 = ConfigItem35.newAttribute(( "Animate\ Video\/Vis\ Drawer\ \(disabled\ if\ opacity\ \<\ 100\%\)"), ( "0"));
- ConfigAttribute4 = ConfigItem35.newAttribute(( "Animate\ Config\ Drawer"), ( "0"));
- ConfigAttribute71 = ConfigItem35.newAttribute(( "sep1"), ( ""));
- ConfigAttribute71.setData(( "\-"));
- ConfigAttribute7 = ConfigItem35.newAttribute(( "Open\ Video\/Vis\ from\ the\ top"), ( "0"));
- ConfigAttribute8 = ConfigItem35.newAttribute(( "Open\ Video\/Vis\ from\ the\ bottom"), ( "1"));
- ConfigAttribute9 = ConfigItem35.newAttribute(( "Bypass\ setting\ to\ keep\ in\ screen"), ( "1"));
- if(( ConfigAttribute7.getData() == ( "1"))) {
- ConfigAttribute7.onDataChanged();
- } else {
- ConfigAttribute8.onDataChanged();
- }
- ConfigAttribute11 = ConfigItem38.newAttribute(( "Show\ Menus\ in\ Main\ Window"), ( "1"));
- ConfigAttribute12 = ConfigItem38.newAttribute(( "Show\ Menus\ in\ Playlist\ Editor"), ( "1"));
- ConfigAttribute13 = ConfigItem38.newAttribute(( "Show\ Menus\ in\ Media\ Library"), ( "1"));
- ConfigAttribute71 = ConfigItem32.newAttribute(( "sep1"), ( ""));
- ConfigAttribute71.setData(( "\-"));
- ConfigAttribute5 = ConfigItem32.newAttribute(( "Detach\ Vis\ Window"), ( "0"));
- ConfigAttribute6 = ConfigItem32.newAttribute(( "Detach\ Video\ Window"), ( "0"));
- ConfigAttribute10 = ConfigItem57.newAttribute(( "Equalizer\ Alt\+G"), ( "0"));
- ConfigAttribute71 = ConfigItem32.newAttribute(( "sep2"), ( ""));
- ConfigAttribute71.setData(( "\-"));
- ConfigAttribute17 = ConfigItem32.newAttribute(( "Enable\ Beat\ Visualization"), ( "1"));
- ConfigAttribute14 = ConfigItem41.newAttribute(( "Link\ Position\ and\ Width"), ( "1"));
- ConfigAttribute15 = ConfigItem41.newAttribute(( "Link\ Position\,\ Unlink\ Width"), ( "0"));
- ConfigAttribute16 = ConfigItem41.newAttribute(( "Unlink\ Position\ and\ Width"), ( "0"));
- ConfigAttribute19 = ConfigItem44.newAttribute(( "Open\ Context\ Menu"), ( "1"));
- ConfigAttribute18 = ConfigItem44.newAttribute(( "Open\ Configuration"), ( "0"));
- ConfigAttribute22 = ConfigItem47.newAttribute(( "Show\ always"), ( "0"));
- ConfigAttribute21 = ConfigItem47.newAttribute(( "Show\ with\ windowshade\ and\ when\ minimized"), ( "0"));
- ConfigAttribute20 = ConfigItem47.newAttribute(( "Show\ only\ when\ minimized"), ( "0"));
- ConfigAttribute23 = ConfigItem47.newAttribute(( "Never\ show"), ( "1"));
- ConfigAttribute71 = ConfigItem47.newAttribute(( "sep1"), ( ""));
- ConfigAttribute71.setData(( "\-"));
- ConfigAttribute27 = ConfigItem47.newAttribute(( "Disable\ in\ fullscreen"), ( "1"));
- ConfigAttribute24 = ConfigItem53.newAttribute(( "Notifications\ fade\ in\ time"), ( "1000"));
- ConfigAttribute25 = ConfigItem53.newAttribute(( "Notifications\ fade\ out\ time"), ( "5000"));
- ConfigAttribute26 = ConfigItem53.newAttribute(( "Notifications\ display\ time"), ( "2000"));
- ConfigAttribute28 = ConfigItem50.newAttribute(( "Enable\ Songticker\ scrolling"), ( "1"));
- ConfigAttribute29 = ConfigItem50.newAttribute(( "Disable\ Songticker\ scrolling"), ( "0"));
- return Null;
- }
-
- System.onScriptLoaded()
- {
- func0();
- Group103 = System.getScriptGroup();
- Group104 = Group103.findObject(( "player\.normal\.display\.beatvisualization"));
- Layer105 = Group103.findObject(( "beatdisplayoverlay"));
- AnimatedLayer111 = Group103.findObject(( "beatleft"));
- AnimatedLayer112 = Group103.findObject(( "beatright"));
- Button115 = Group103.findObject(( "beatvisualization"));
- Button116 = Group103.findObject(( "beatvisualization2"));
- Layer106 = Group103.findObject(( "display\.right"));
- Layer107 = Group103.findObject(( "display\.right\.overlay2"));
- Layer108 = Group103.findObject(( "display\.st\.right"));
- Layer109 = Group103.findObject(( "visualization\.overlay"));
- Int113 = 0;
- Int114 = 0;
- Timer110 = ( new Timer);
- Timer110.setDelay(10);
- return Null;
- }
-
- System.onScriptUnloading()
- {
- delete Timer110;
- return Null;
- }
-
- func1830()
- {
- Int Int130;
- Int Int141;
- Int130 = Group103.getWidth();
- if(( ( Int130 % 2) != 0)) {
- Layer106.setXmlParam(( "image"), ( "player\.display\.right"));
- Layer107.setXmlParam(( "image"), ( "player\.display\.right"));
- Layer108.setXmlParam(( "image"), ( "player\.display\.songticker\.bg\.right"));
- Layer109.setXmlParam(( "image"), ( "player\.visualization\.overlay"));
- } else {
- Layer106.setXmlParam(( "image"), ( "player\.display\.right2"));
- Layer107.setXmlParam(( "image"), ( "player\.display\.right2"));
- Layer108.setXmlParam(( "image"), ( "player\.display\.songticker\.bg\.right2"));
- Layer109.setXmlParam(( "image"), ( "player\.visualization\.overlay2"));
- }
- if(( Int130 < 480)) {
- Int141 = ( ( Int130 - 60) / 2);
- Group104.setXmlParam(( "x"), System.integerToString(Int141));
- Group104.show();
- if(( ConfigAttribute17.getData() == ( "1"))) {
- Timer110.stop();
- Timer110.start();
- } else {
- Timer110.stop();
- AnimatedLayer111.gotoFrame(0);
- AnimatedLayer112.gotoFrame(0);
- }
- } else {
- Group104.hide();
- Timer110.stop();
- }
- return Null;
- }
-
- Group103.onResize(int x, int y, int w, int h)
- {
- func1830();
- return Null;
- }
-
- Timer110.onTimer()
- {
- Int Int148;
- Int Int147;
- Int Int150;
- Int Int151;
- Int147 = System.getLeftVuMeter();
- Int148 = System.getRightVuMeter();
- Int150 = ( Int147 / 16);
- Int151 = ( Int148 / 16);
- if(( Int150 < 14)) {
- Int150 = 14;
- }
- if(( Int151 < 14)) {
- Int151 = 14;
- }
- if(( Int150 > Int113)) {
- Int150 = ( Int113 - 1);
- if(( Int150 > 0)) {
- Int150 = 0;
- }
- }
- if(( Int151 > Int114)) {
- Int151 = ( Int114 - 1);
- if(( Int151 > 0)) {
- Int151 = 0;
- }
- }
- Int113 = Int150;
- Int114 = Int151;
- AnimatedLayer111.gotoFrame(Int150);
- AnimatedLayer112.gotoFrame(Int151);
- return Null;
- }
-
- ConfigAttribute17.onDataChanged()
- {
- func1830();
- return Null;
- }
-
- System.onKeyDown(String key)
- {
- if(( key == ( "shift\+ctrl\+alt"))) {
- Int117 = 1;
- complete;
- } else {
- Int117 = 0;
- }
- return Null;
- }
-
- Button115.onLeftClick()
- {
- if(( ConfigAttribute17.getData() == ( "1"))) {
- ConfigAttribute17.setData(( "0"));
- } else {
- ConfigAttribute17.setData(( "1"));
- }
- return Null;
- }
-
- Button116.onActivate(int activated)
- {
- if(( ! Int117)) {
- Button115.leftClick();
- return Null;
- }
- Timer110.stop();
- if(activated) {
- AnimatedLayer111.setXmlParam(( "image"), ( "player\.display\.beat\.left2"));
- AnimatedLayer112.setXmlParam(( "image"), ( "player\.display\.beat\.right2"));
- Layer105.hide();
- } else {
- AnimatedLayer111.setXmlParam(( "image"), ( "player\.display\.beat\.left"));
- AnimatedLayer112.setXmlParam(( "image"), ( "player\.display\.beat\.right"));
- Layer105.show();
- }
- func1830();
- return Null;
- }
-
-
-